package com.lf.api.weixin.entity;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 
 * Description: 网页授权接口调用凭证
 * Copyright: Copyright (c)2012
 * Company: 小小书童
 * @author: 小小书童
 * @version: 1.0
 * Create at: 2016年10月5日 下午10:58:33
 *
 * Modification History:
 * Date Author Version Description
 * ---------------------------修改历史---------------------------------------
 * 2016年10月5日 小小书童 1.0
 */
public class WeixinOauth2Token extends ResultCode{
    // 网页授权接口调用凭证
	@JsonProperty("access_token")
    private String accessToken;
    // 凭证有效时长
	@JsonProperty("expires_in")
    private int expiresIn;
    // 用于刷新凭证
	@JsonProperty("refresh_token")
    private String refreshToken;
    // 用户标识
	@JsonProperty("openid")
    private String openId;
    // 用户授权作用域
    private String scope;

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public int getExpiresIn() {
        return expiresIn;
    }

    public void setExpiresIn(int expiresIn) {
        this.expiresIn = expiresIn;
    }

    public String getRefreshToken() {
        return refreshToken;
    }

    public void setRefreshToken(String refreshToken) {
        this.refreshToken = refreshToken;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

	@Override
	public String toString() {
		return "WeixinOauth2Token [accessToken=" + accessToken + ", expiresIn=" + expiresIn + ", refreshToken="
				+ refreshToken + ", openId=" + openId + ", scope=" + scope + ", getErrorCode()=" + getErrorCode()
				+ ", getErrorMsg()=" + getErrorMsg() + "]";
	}
    
}